package com.jwsoft.manager.common.enums;

public enum EduWorkLogTypeEnum {
    gdtj("1", "工单提交"),
    gdlz("2", "工单流转"),
    gdcl("3", "工单处理"),

    jd("4", "技术人员接单"),

    ;

    private String type;
    private String name;

    EduWorkLogTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static EduWorkLogTypeEnum getByType(String type) {

        for (EduWorkLogTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
